]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
layout: Fix the actor tracking parameter parsing
authorJasper St. Pierre <jstpierre@mecheye.net>
Sat, 1 Oct 2011 02:23:04 +0000 (22:23 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Sat, 1 Oct 2011 18:41:53 +0000 (14:41 -0400)
It's not appropriate to inherit from the parent property if we pass "false"
as a value, especially when all current parameters are booleans.

https://bugzilla.gnome.org/show_bug.cgi?id=660608

js/ui/layout.js

index 4e239e6e039e0658be506a8d4a56fa507730b9ae..0fe255ed4ca9274c6261cbe12ca538ad5be67f70 100644 (file)
@@ -625,7 +625,7 @@ Chrome.prototype = {
         // We can't use Params.parse here because we want to drop
         // the extra values like ancestorData.actor
         for (let prop in defaultParams) {
-            if (!params[prop])
+            if (!params.hasOwnProperty(prop))
                 params[prop] = ancestorData[prop];
         }